local skynet = require "skynet"
local Services = require "global.Services"
---@type PlayerMgr
local PlayerMgr = Services.PLAYER_MGR

local M = {}

function M.send(playerId, protoId, data)
    PlayerMgr.send(playerId, protoId, data)
end

function M.sendPlayer(player, protoId, data)
    skynet.send(player.gate, "lua", "send", player.fd, protoId, data)
end

function M.broadcast(playerIds, protoId, data)
    PlayerMgr.boardcast(playerIds, protoId, data)
end

function M.sendAll(protoId, data)
    PlayerMgr.sendAll(protoId, data)
end

return M
